#include("/front/family/_layout.html")
#@layout()
#define layoutImportcss()
    <link rel="stylesheet" href="/front/css/framework7-icons.css">
    <link rel="stylesheet" href="/front/css/sheet.css">
    <link rel="stylesheet" href="/front/css/popup.css">
    <link rel="stylesheet" href="/front/css/smart-select.css">
#end
#define layoutHead()
	<title>家长资料</title>
#end
#define layoutHome()
#include("inc_toolbar.html")

<div class="page-content patriarch-page-content">
	
	<div class="user-head-screen">
		<div>
			<span class="head-portrait head-portrait-big"><img id="img_user_head" src="#"></span>
			<span class="head-username" style="color: var(--f7-list-item-title-text-color);top:145px;" id="user_name_span"></span>
		</div>
	</div>
	<div class="list">
		<ul>
			<li>
				<a class="item-link external" href="/front/family/parent/mybaby?stuid=#(login_parent_rd.student_id)">
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title">宝宝资料</div>
							<div class="item-value student_name"></div>
						</div>
					</div>
				</a>
			</li>
			<li>
				<a class="item-link external" href="/front/family/album?from=mypage&stuid=#(login_parent_rd.student_id)">
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title">宝宝相册</div>
							<div class="item-value student_name"></div>
						</div>
					</div>
				</a>
			</li>
			<li>
				<a href="/front/family/parent/myinfo" class="item-link  external">
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title">家长资料</div>
							<div class="item-value"></div>
						</div>
					</div>
				</a>
			</li>
			<li>
				<a class="item-link external" href="/front/family/invite">
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title">邀请成员</div>
							<div class="item-value student_name"></div>
						</div>
					</div>
				</a>
			</li>
			<li>
				<a class="item-link external" href="/front/family/parent/myset">
					<div class="item-content">
						<div class="item-inner">
							<div class="item-title">设置</div>
							<div class="item-value student_name"></div>
						</div>
					</div>
				</a>
			</li>
		</ul>
	</div>
</div>

#end
#define layoutImportjs()
    <script type="text/javascript" src="/front/js/sheet.js"></script>
    <script type="text/javascript" src="/front/js/popup.js"></script>
    <script type="text/javascript" src="/front/js/smart-select.js"></script>
#end
#define layoutScript()
<script type="text/javascript">
	var img_user_head_url = '#(login_user_record.getStr("user_img") ?? "/front/img/user.png")';
	$$('#img_user_head').attr('src', getZoomFileUrlwh(img_user_head_url, 100, 100));
	var user_name_span_txt = '#(login_parent_rd.getStr("parent_name") ?? "")';
	if (isBlank(user_name_span_txt)){
		user_name_span_txt = '#(login_parent_rd.getStr("student_name") ?? "")'+'#(login_parent_rd.getStr("kindred_name") ?? "")';
	}
	$$('#user_name_span').html(user_name_span_txt);
</script>
#end